﻿Ext.define('Wiztop.view.MyMeetingComment', {
    extend: 'Ext.DataView',
    requires: [
        'Ext.DataView',
         'Wiztop.model.MeetingComment'
    ],
    xtype: 'mymeetingcommentview',
    config: {
        baseCls: 'meeting',
        store: new Ext.data.Store({
            autoLoad: false,
            model: 'Wiztop.model.MeetingComment'
        }),
        emptyText: '<div class="emptyText">没有数据</div>',
        items: [
        {
            docked: 'top',
            layout: 'hbox',
            items: [
                {
                    baseCls: 'title',
                    style: 'width:40%',
                    html: '所属会议'
                },
                {
                    baseCls: 'title',
                    style: 'width:40%',
                    html: '记事本'
                },
                {
                    baseCls: 'title',
                    style: 'width:20%',
                    html: '操作'
                }]
        }],
        itemTpl: new Ext.XTemplate(
        '<div style="width:40%">{MeetingName}</div>',
        '<div style="width:40%">{Name}</div>',
        '<div style="width:20%"><input type="button" id="btnViewComment" class="normal_btn" value="查看"/><input type="button" id="btnDeleteComment" class="normal_btn" value="删除"/></div>')
    }
});